package com.vidaappv1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class Home extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_home);
	
		Button btnAcc = (Button)findViewById(R.id.btnAcc);
		Button btnOrder = (Button)findViewById(R.id.btnOrder);
		Button btnBalance = (Button)findViewById(R.id.btnBalance);
		Button bntCredits = (Button)findViewById(R.id.btnCredits);
		Button btnOffers = (Button)findViewById(R.id.btnOffers);
		
		//call BigMenu activity
		btnOrder.setOnClickListener(new View.OnClickListener() {		
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				startActivity(new Intent(getApplicationContext(),BigMenu.class));
			}
		});
		btnAcc.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(),AccountInfo.class));
				
			}
		});
		
		btnBalance.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(),AccountBalance.class));
			}
		});

		bntCredits.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(),LoadCredits.class));
				
			}
		});
		
		btnOffers.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(),SpecialOffers.class));
				
			}
		});
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.home, menu);
		return true;
	}

}
